
<%@ page import="iceportal1.Enterprise" %>

        <g:set var="entityName" value="${message(code: 'enterprise.label', default: 'Enterprise')}" />

        <div class="nav">
            <span class="menuButton"><g:remoteLink class="list" action="list" update="enterprise"><g:message code="default.list.label" args="[entityName]" /></g:remoteLink></span>
            <span class="menuButton"><g:remoteLink class="create" action="create" update="enterprise"><g:message code="default.new.label" args="[entityName]" /></g:remoteLink></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${enterpriseInstance}">
            <div class="errors">
                <g:renderErrors bean="${enterpriseInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:formRemote name="enterpriseEdit" url="[action:'save']" update="enterprise" method="post" >
                <g:hiddenField name="id" value="${enterpriseInstance?.id}" />
                <g:hiddenField name="version" value="${enterpriseInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="name"><g:message code="enterprise.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: enterpriseInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${enterpriseInstance?.name}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:formRemote>
        </div>
    </body>
</html>
